<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>首页图片管理</title>
<link rel="stylesheet" rev="stylesheet" href="<c:url value="/styles/ad/style.css"/>" type="text/css"/>
<script language="JavaScript" type="text/javascript" src="<c:url value="/scripts/jquery-1.4.4.min.js"/>"></script>
<style type="text/css">
<!--
.atten {font-size:12px;font-weight:normal;color:#F00;}
table.pic tr td{text-align: center;}
table.pic tr td img{width: 180px;height:110px;}
-->
</style>
</head>

<body class="ContentBody">

<div class="MainDiv">
<table width="99%" border="0" cellpadding="0" cellspacing="0" class="CContent">
  <tr>
      <th class="tablestyle_title" >网站首页图片切换</th>
  </tr>
  <tr>
    <td class="CPanel">
		<table border="0" cellpadding="0" cellspacing="0" style="width:100%">
		<tr>
			<td align="left">
				<input type="button" name="Submit2" value="返回" class="button" onclick="window.history.go(-1);"/>			</td>
		</tr>
			<TR>
			<TD width="100%">
				<fieldset style="height:100%;">
				<legend>切换图片宣传 (<font color="red">推荐图片尺寸  697*435</font>)</legend>
					<table class="pic" border="0" cellpadding="2" cellspacing="1" style="width:100%">
					  <tr>
					    <c:forEach items="${pclist }" var="pc">
					   	 <td width="200px"><img src="<c:url value="${pc.get('picurl')}"/>"><br>
					   	 	<a href="${pc.get('pichref')}" target="_blank">查看关联商品</a> &nbsp;&nbsp;&nbsp;
					   	 	<a href="<c:url value="/admin/removepic?piccode=${pc.get('piccode')}"/>" onclick="return confirm('确定删除？');">删除</a></td>
					    </c:forEach>
					  </tr>
					  <tr>
					    <td width="80%" colspan="4"><br>
					    	<form action="<c:url value="/admin/douploadpic"/>" method="post"  enctype="multipart/form-data">
					                关联商品地址：<input type="text" name="pichref" style="width:440px" value="http://localhost:8080/shopping-web/index.jsp"><span class="red">*</span>	<br>
					  	  上传切换图片：<input type="file" name='pcfile' style="width:400px" id="pname" value="" /><span class="red">*</span> <input type="submit" name="Submit" onclick="return confirm('确定上传？');" value="上传" class="button" /></form>
					    </td>
					  </tr>
					  </table>
				</fieldset> 
				</TD>
		</TR>
		</TABLE>
	 </td>
  </tr>
</TABLE><br>
<table width="99%" border="0" cellpadding="0" cellspacing="0" class="CContent">
  <tr>
      <th class="tablestyle_title" >网站首页左边图片</th>
  </tr>
  <tr>
    <td class="CPanel">
		<table border="0" cellpadding="0" cellspacing="0" style="width:100%">
		<tr>
			<td align="left">
				<input type="button" name="Submit2" value="返回" class="button" onclick="window.history.go(-1);"/>			</td>
		</tr>
			<TR>
			<TD width="100%">
				<fieldset style="height:100%;">
				<legend>左边列表图片宣传 (<font color="red">推荐图片尺寸 248*171</font>)</legend>
					<table class="pic" border="0" cellpadding="2" cellspacing="1" style="width:100%">
					  <tr>
					    <c:forEach items="${pclist2 }" var="pc">
					   	 <td width="200px"><img src="<c:url value="${pc.get('picurl')}"/>"><br>
					   	 	<a href="${pc.get('pichref')}" target="_blank">查看关联商品</a> &nbsp;&nbsp;&nbsp;
					   	 	<a href="<c:url value="/admin/removepic?piccode=${pc.get('piccode')}"/>" onclick="return confirm('确定删除？');">删除</a></td>
					    </c:forEach>
					  </tr>
					  <tr>
					    <td width="80%" colspan="4"><br>
					    	<form action="<c:url value="/admin/douploadpic2"/>" method="post"  enctype="multipart/form-data">
					                关联商品地址：<input type="text" name="pichref" style="width:440px" value="http://localhost:8080/shopping-web/index.jsp"><span class="red">*</span>	<br>
					  	  上传切换图片：<input type="file" name='pcfile' style="width:400px" id="pname" value="" /><span class="red">*</span> <input type="submit" name="Submit" onclick="return confirm('确定上传？');" value="上传" class="button" /></form>
					    </td>
					  </tr>
					  </table>
				</fieldset> 
				</TD>
		</TR>
		</TABLE>
	 </td>
  </tr>
</TABLE>
</div>

</body>
</html>